import request from '@/utils/request'
export default {
    /**
     * 分页查询
     * @param {*} page 当前页面
     * @param {*} limit 没条记录数
     * @param {*} condition 条件
     */
    queryPage(page,limit,condition){
        return request({
            url:'/eduService/teacher/queryPage/'+page+'/'+limit,
            method:'post',
            data:condition
        })

    },
    delete(id){
        return request({
            url:'/eduService/teacher/'+id,
            method:'delete'
        })
    },
    save(teacher){
        return request({
            url:'/eduService/teacher/save',
            method:'post',
            data:teacher
        })
    },
    getByid(id){
        return request({
            url:'/eduService/teacher/getById/'+id,
            method:'get',
        })
    },
    upt(teacher){
        return request({
            url:'/eduService/teacher/upt',
            method:'post',
            data:teacher
        })
    },
    getList() {
        return request({
            url: "/eduService/teacher/getTeacherList",
            method: 'get'
        })
    },
  }